<?php if ($this->pageCount){ ?>
<div class="paginationControl" align="center">
 
<?php if (isset($this->previous)){?>
          <a href="<?php echo $this->url(array('controller'=>'index','action'=>'index','module'=>'user','page' => $this->previous))?>">  Previous |</a>
   <?php }?> 
   <?php foreach ($this->pagesInRange as $page){
       if ($page != $this->current){?>
               <a href="<?php echo $this->url(array('controller'=>'index','action'=>'index','module'=>'user','page' => $page))?>"><?php echo $page?> |</a>
      <?php }else{?>
          <?php echo $page . ' | '?>
      <?php }
   }
     if (isset($this->next)){?>
        <a href="<?php echo $this->url(array('controller'=>'index','action'=>'index','module'=>'user','page' => $this->next))?>">Next </a>
      <?php  } ?>
</div>
<?php } ?>